﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage_EmpDetail.master"
    AutoEventWireup="true" CodeFile="EmpSalaryAdjust.aspx.cs" Inherits="EmployeesSalary_EmpSalaryAdjust" %>

<%@ Register Src="../Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc2" %>
<%@ Register Src="../Control/EmpSalaryBar.ascx" TagName="EmpSalaryBar" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <uc1:EmpSalaryBar ID="EmpSalaryBar" runat="server" />
    <fieldset title="薪资调整" style="overflow: hidden; margin-top: 10px;">
        <legend style='font-size: large; font-weight: bold'>
            <asp:Literal runat="server" ID="LitTitle"></asp:Literal></legend>
        <table style="width: 100%">
            <tr>
                <td>
                    <infolight:webnavigator id="wn" runat="server" bindingobject="FVSalaryAdjust" oncommand="EmpSalaryAdjust_Command"
                        showdatastyle="FormViewStyle" width="100%" statusstrip="WebStatusStrip1" 
                        anyqueryid="wn" ctlheight="25" CssClass="NavigatorBar">
                        <navcontrols>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/first.gif" MouseOverImageUrl="../image/uipics/first2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/first3.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image"
                    ControlVisible="False" ImageUrl="../image/uipics/previous.gif" MouseOverImageUrl="../image/uipics/previous2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/previous3.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/next.gif" MouseOverImageUrl="../image/uipics/next2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/last.gif" MouseOverImageUrl="../image/uipics/last2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                    
                    
                    
<InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Add3_C.gif" ImageUrl="../Image/UIPics/Add_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Add2_C.gif" Size="48">
                </InfoLight:ControlItem>
                 <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3_C.gif" ImageUrl="../Image/UIPics/Edit_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Edit2_C.gif" Size="48">
                </InfoLight:ControlItem>
          
               
<InfoLight:ControlItem ControlName="Cancel" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Abort3_C.gif" ImageUrl="../Image/UIPics/Abort_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Abort2_C.gif" Size="48">
                </InfoLight:ControlItem>
<InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Apply3_C.gif" ImageUrl="../Image/UIPics/Apply_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Apply2_C.gif" Size="48">
                </InfoLight:ControlItem>
                    
                    
                    
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/abort.gif" MouseOverImageUrl="../image/uipics/abort2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/abort3.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/query3.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/print3.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3.gif" ImageUrl="../Image/UIPics/Export.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2.gif" Size="25" />
            </navcontrols>
                        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
                    </infolight:webnavigator>
                    <infolight:webformview id="FVSalaryAdjust" runat="server" width="100%" datasourceid="Master"
                        layoutcolnum="2" allvalidatesucess="True" autoemptydatatext="False" cellpadding="5"
                        datahaschanged="False" insertback="False" keyvalues="" needexecuteadd="True"
                        oldpageindex="-1" validatefailed="False" ondatabound="FVSalaryAdjust_DataBound">
                        <edititemtemplate>
                        <table class="tbI" cellpadding="5">
             <tr>
                 <td class="label1">
                    编号：
                 </td>
                 <td class="readonly">
                     <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("EmpSalaryAdjustId") %>' 
                         ReadOnly="True"></asp:TextBox>
                 </td>
                 <td class="label2">
                     员工(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                   <uc2:SelUser ID="SelUser" runat="server" />
                 </td>
                 </tr>
                  <tr>
                 <td class="label2">
                    调整时间(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox10" runat="server" 
                         Text='<%# Bind("AjustTime", "{0:yyyy/M}") %>' 
                         onfocus="WdatePicker({dateFmt:'yyyy-M'})" CssClass="Wdate" ></asp:TextBox>
                 </td>
                 
                 </tr>
                 <tr>
                 <td class="label1">
                    基本工资(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("JBGZ", "{0:##0.00}") %>' ></asp:TextBox>
                 </td>
                 <td class="label2">
                    基本工资调整原因：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("JBGZ_Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                  <tr>
                 <td class="label1">
                    绩效奖金(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("JXJJ", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    绩效奖金调整原因：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("JXJJ_Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                   <tr>
                 <td class="label1">
                    岗位津贴(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("GWJT", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    各类补贴(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("GLBT", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 </tr>
                   <tr>
                 <td class="label1">
                    其他：
                 </td>
                 <td class="textbox" colspan="3">
                     <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("Other") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                
                 </tr>
                 <tr>
                 <td class="label1">
                    备注：
                 </td>
                 <td class="textbox" colspan="3">
                     <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                 
               </table>
            </edititemtemplate>
                        <insertitemtemplate>
                        <table class="tbI" cellpadding="5">
             <tr>
                 <td class="label1">
                    编号：
                 </td>
                 <td class="readonly">
                     <asp:TextBox ID="EmpSalaryAdjustId" runat="server" Text='<%# Bind("EmpSalaryAdjustId") %>' 
                         ReadOnly="True"></asp:TextBox>
                 </td>
                 <td class="label2">
                     员工(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                   <uc2:SelUser ID="SelUser" runat="server" />
                 </td>
                 </tr>
                  <tr>
                 <td class="label2">
                    调整时间(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="AjustTime" runat="server"  
                         Text='<%# Bind("AjustTime", "{0:yyyy/M}") %>' 
                         onfocus="WdatePicker({dateFmt:'yyyy-M'})" CssClass="Wdate" ></asp:TextBox>
                 </td>
                 
                 </tr>
                 <tr>
                 <td class="label1">
                    基本工资(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="JBGZ" runat="server" Text='<%# Bind("JBGZ", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    基本工资调整原因：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="JBGZ_Remark" runat="server" Text='<%# Bind("JBGZ_Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                  <tr>
                 <td class="label1">
                    绩效奖金(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="JXJJ" runat="server" Text='<%# Bind("JXJJ", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    绩效奖金调整原因：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="JXJJ_Remark" runat="server" Text='<%# Bind("JXJJ_Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                 
                   <tr>
                 <td class="label1">
                    岗位津贴(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="GWJT" runat="server" Text='<%# Bind("GWJT", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    各类补贴(<span style="color: Red">*</span>)：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="GLBT" runat="server" Text='<%# Bind("GLBT", "{0:##0.00}") %>' 
                         ></asp:TextBox>
                 </td>
                 </tr>
                 
                   <tr>
                 <td class="label1">
                    其他：
                 </td>
                 <td class="textbox" colspan="3">
                     <asp:TextBox ID="Other" runat="server" Text='<%# Bind("Other") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                
                 </tr>
                 <tr>
                 <td class="label1">
                    备注：
                 </td>
                 <td class="textbox" colspan="3">
                     <asp:TextBox ID="Remark" runat="server" Text='<%# Bind("Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
               </table>
        </insertitemtemplate>
                        <itemtemplate>
                        
        
                     <table class="tbR" cellpadding="5">
             <tr>
                 <td class="label1">
                    编号：
                 </td>
                 <td class="readonly">
                     <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EmpSalaryAdjustId") %>' 
                         ReadOnly="True"></asp:TextBox>
                 </td>
                 <td class="label2">
                     员工：
                 </td>
                 <td class="textbox">
                   <uc2:SelUser ID="SelUser" runat="server" />
                 </td>
                 </tr>
                  <tr>
                 <td class="label2">
                    调整时间：
                 </td>
                 <td class="readonly">
                     <asp:TextBox ID="TextBox2" runat="server"  Text='<%# Bind("AjustTime", "{0:yyyy/M}") %>' ></asp:TextBox>
                 </td>
                 
                 </tr>
                 <tr>
                 <td class="label1">
                    基本工资：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("JBGZ", "{0:C}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    基本工资调整原因：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("JBGZ_Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                  <tr>
                 <td class="label1">
                    绩效奖金：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("JXJJ", "{0:C}") %>' 
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    绩效奖金调整原因：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("JXJJ_Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                   <tr>
                 <td class="label1">
                    岗位津贴：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox19" runat="server" Text='<%# Bind("GWJT", "{0:C}") %>'
                         ></asp:TextBox>
                 </td>
                 <td class="label2">
                    各类补贴：
                 </td>
                 <td class="textbox">
                     <asp:TextBox ID="TextBox20" runat="server" Text='<%# Bind("GLBT", "{0:C}") %>'
                         ></asp:TextBox>
                 </td>
                 </tr>
                 
                 
                   <tr>
                 <td class="label1">
                    其他：
                 </td>
                 <td class="textbox" colspan="3">
                     <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Other") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                
                 </tr>
                 <tr>
                 <td class="label1">
                    备注：
                 </td>
                 <td class="textbox" colspan="3">
                     <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Remark") %>' TextMode="MultiLine"
                         ></asp:TextBox>
                 </td>
                 </tr>
                 
               </table>
                
            </itemtemplate>
                        <fields>
                <InfoLight:FormViewField ControlID="EmpSalaryAdjustId" 
                    FieldName="EmpSalaryAdjustId" />
                <InfoLight:FormViewField ControlID="EmployeeId" 
                    FieldName="EmployeeId" />
                <InfoLight:FormViewField ControlID="AjustTime" FieldName="AjustTime" />
                <InfoLight:FormViewField ControlID="JBGZ" FieldName="JBGZ" />
                <InfoLight:FormViewField ControlID="JBGZ_Remark" 
                    FieldName="JBGZ_Remark" />
                <InfoLight:FormViewField ControlID="JXJJ" FieldName="JXJJ" />
                <InfoLight:FormViewField ControlID="JXJJ_Remark" 
                    FieldName="JXJJ_Remark" />
                <InfoLight:FormViewField ControlID="GWJT" FieldName="GWJT" />
                <InfoLight:FormViewField ControlID="GLBT" FieldName="GLBT" />
                <InfoLight:FormViewField ControlID="Other" FieldName="Other" />
                <InfoLight:FormViewField ControlID="Remark" FieldName="Remark" />
                <InfoLight:FormViewField ControlID="AdjustStatus" 
                    FieldName="AdjustStatus" />
                <InfoLight:FormViewField ControlID="EditEmpId" FieldName="EditEmpId" />
                <InfoLight:FormViewField ControlID="EditTime" FieldName="EditTime" />
            </fields>
                    </infolight:webformview>
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    <br />
    <div style="text-align: center">
        <span class="roundbtn" runat="server" id="spHistory">
            <asp:LinkButton ID="LinkButton1" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;历&nbsp;&nbsp;&nbsp;&nbsp;史&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;&nbsp;&nbsp;&nbsp;"
                OnClick="LinkButton1_Click"></asp:LinkButton>
        </span>
    </div>
    <infolight:webdefault id="wdEmpSalaryAdjust" runat="server" defaultactive="True"
        datasourceid="Master" datamember="EmpSalaryAdjust" carryonactive="False">
        <fields>
            <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="EmpSalaryAdjustId"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="GetAjustTime()" FieldName="AjustTime"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="GetJBGZ()" FieldName="JBGZ"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="GetJXJJ()" FieldName="JXJJ"></InfoLight:DefaultFieldItem>
             <InfoLight:DefaultFieldItem DefaultValue="GetGWJT()" FieldName="GWJT"></InfoLight:DefaultFieldItem>
            <InfoLight:DefaultFieldItem DefaultValue="GetGLBT()" FieldName="GLBT"></InfoLight:DefaultFieldItem>
        </fields>
    </infolight:webdefault>
    <infolight:webvalidate id="wvEmpSalaryAdjust" runat="server" datasourceid="Master"
        datamember="EmpSalaryAdjust" rowcss="" altrowcss="" forecolor="Red" validatestyle="ShowDialog">
        <fields>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="AjustTime"></InfoLight:ValidateFieldItem>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="JBGZ" 
                Validate="ValMoney()" WarningMsg="基本工资为数字"></InfoLight:ValidateFieldItem>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="JXJJ" 
                Validate="ValMoney()" WarningMsg="绩效工资为数字"></InfoLight:ValidateFieldItem>
                <InfoLight:ValidateFieldItem CheckNull="True" FieldName="GWJT" 
                Validate="ValMoney()" WarningMsg="岗位津贴为数字"></InfoLight:ValidateFieldItem>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="GLBT" 
                Validate="ValMoney()" WarningMsg="各类补贴为数字"></InfoLight:ValidateFieldItem>
        </fields>
    </infolight:webvalidate>
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="EmpSalaryAdjust" onadding="Master_Adding" onupdating="Master_Updating">
    </infolight:webdatasource>
    <asp:HiddenField ID="hidEid" runat="server" />
    <asp:HiddenField ID="hidEname" runat="server" />
</asp:Content>
